package com.xbongbong.pro.message.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * Description: 消息筛选项DTO
 * @author 李杰
 * @date 2019-1-7 13:47:25
 * @version v1.0
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class MessageSearchFilterDTO extends BaseDTO{

    @NotNull(message = "{dto.msg.messageSearchFilter.appId.NotNull}")
    private Long appId;

    @NotNull(message = "{dto.msg.messageSearchFilter.saasMark.NotNull}")
    @DecimalMin(value = "1", message = "{dto.msg.messageSearchFilter.saasMark.DecimalMin}")
    @DecimalMax(value = "2", message = "{dto.msg.messageSearchFilter.saasMark.DecimalMax}")
    private Integer saasMark;

}
